#ifndef MACROS_H
#define MACROS_H

#include "config.h"

#define FLAG(BIT) ((1UL)<<(BIT))
#define MASK(S,N) ((((1UL)<<(N))-1UL)<<(S))

#define CONCAT_(x,y) x##y
#define CONCAT(x,y) x##y
#define STRINGFY_(x) #x
#define STRINGFY(x) STRINGFY_(x)

#endif // MACROS_H
